/**
 * Vue 插件安装文件
 */

import type { App } from 'vue'
import Button from './components/Button'
import Modal from './components/Modal'

const components = [Button, Modal]

const install = (app: App) => {
  components.forEach(component => {
    if (component.install) {
      component.install(app)
    }
  })
}

export { install }
export default { install }